package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.commodity.models.bo.CategoryShieldPartsRelationBO;
import com.ztgf.commodity.models.dto.CategoryShieldPartsRelationDTO;
import com.ztgf.commodity.models.vo.CategoryShieldPartsRelationVO;
import com.ztgf.commodity.models.vo.ShieldPartsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分类盾构部位关系表映射
 *
 * @author chenyu.wang
 * @Date 2020-06-02 15:12:13
 */
@Mapper
public interface CategoryShieldPartsRelationMapper extends BaseMapper<CategoryShieldPartsRelationDTO> {

    /**
     * description: 分类盾构部位关系列表
     * param: [page, bo]
     * author: chenyu.wang
     * date: 2020-06-02
     * return: java.util.List<com.ztgf.commodity.models.vo.CategoryShieldPartsRelationVO>
     */
    List<CategoryShieldPartsRelationVO> queryPageList(Page<CategoryShieldPartsRelationVO> page, @Param("item") CategoryShieldPartsRelationBO bo);

    /**
     * description: 根据分类顶级id查询关系盾构部位
     * param: [id] 分类id
     * author: chenyu.wang
     * date: 2020-06-05
     * return: java.util.List<com.ztgf.commodity.models.vo.ShieldPartsVO>
     */
    List<ShieldPartsVO> queryShieldParts(@Param("id") Long id);
}
